home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cdf.toronto.edu!news
- From: p a u l <a209dowm@cdf.utoronto.ca>
- Subject: creating an ostrstream object screws up the istream object!
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <DpI5IK.DBG@cdf.toronto.edu>
- Sender: news@cdf.toronto.edu (Usenet News)
- Nntp-Posting-Host: sat
- Content-Transfer-Encoding: 7bit
- Organization: Computing Disciplines Facility, University of Toronto
- Mime-Version: 1.0
- Date: Sun, 7 Apr 1996 17:20:41 GMT
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 5.3 sun4c)
- X-Url: news:comp.lang.c++#3167AC81.ABD322C@ksl.co.il
-
- in this function I can read & write to the in_stream with no problem
-
- int object_name::func_name (ifstream &in_stream);
-
- but if I declare this variable:
-
- ostrstream temp_str_stream(temp_string, 2000); // note this is oSTRstream
-
- then the ifstream object stops working (ie. all reads from it return NULL)
-
- any ideas? thanks.
-
- Paul.
-
-